package dvlp.jhlee.myhomeinventory.controller;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

public class MainController extends Controller {

    @Override
    public Navigation run() throws Exception {
        String test = request.getParameter("test");
        
        response.setHeader("Access-Control-Allow-Origin", "*");
        response.setHeader("Access-Control-Allow-Methods", "POST, PUT, GET, DELETE, OPTIONS");
        response.setCharacterEncoding("UTF-8");
        response.setContentType("application/plain");
        response.getWriter().println(test);
        
        System.out.println("TEST:" + test);
        
        return null;
    }
}